<template>
  <el-icon :size='size' :color="color">
    <component :is="name"></component>
  </el-icon>
</template>

<script>
import * as ElIconModules from '@element-plus/icons-vue'
export default {
  name: 'Icon',
  props:{
    size:{
      type: Number
    },
    color:{
      type: String
    },
    name:{
      type: String,
      required:true
    }
  }
}
</script>

<style scoped>

</style>
